package com.xjh.basestudy.designmode.createMode.createMode4_AbstractFactory;

/**
 * @author XuJianHua
 * @date 2022-09-23 13:59:33
 * @description 怪兽高级兵种-猛犸兽
 */
public class Mammoth extends HighClassUnit {

    public Mammoth(int x, int y) {
        super(x, y);
    }

    @Override
    public void show() {
        System.out.println("猛犸巨兽出现在坐标：[" + x + "," + y + "]");
    }

    @Override
    public void attack() {
        System.out.println("猛犸巨兽用獠牙顶，攻击力：" + attack);
    }

}